import pygame, sys

level = {# level 1
           'width': 1800,
           'height': 800,
           'start': (50, 350),
           'bgcolor': (100, 50, 25),
           'itemlist': (# type, (x, y, width, height), color
                        (1, (0, 400, 300, 400), (100, 100, 100)),
                        (1, (400, 400, 200, 400), (100, 100, 100)),
                        (1, (650, 350, 250, 20), (100, 100, 100)),
                        (1, (950, 300, 50, 20), (100, 100, 100)),
                        (1, (1100, 400, 200, 20), (100, 100, 100)),
                        (1, (1250, 600, 550, 200), (100, 100, 100)),
                        )
        }
pygame.init()
view = pygame.display.set_mode((level['width'], level['height']))
view.fill(level['bgcolor'])

for item in level['itemlist']:
    pygame.draw.rect(view, item[2], pygame.Rect(item[1]))

pygame.draw.rect(view, (255, 255, 255), pygame.Rect(level['start'], (5, 5)))

while 1:
    pygame.display.update()
    for event in pygame.event.get():
                    if event.type == pygame.QUIT:
                        sys.exit()